#include "utils.h"
#include "FileManage.h"
#include "CCFileUtils.h"
#include <string>
#include <iostream>
#include <boost/format.hpp>

using namespace boost;
using namespace std;

std::string getWritableFilePath(const char * const filename)
{
	return string(str(format("%s\\%s")% [[FileManage GetPowerSearchPath] UTF8String] % filename));
}

std::string getResPath(const char * const filename)
{
	const char * full_path = cocos2d::CCFileUtils::fullPathFromRelativePath(filename);
	if (0 == strcmp(full_path, filename)) return std::string("");
	return std::string(full_path);	
}